import React from 'react';

import Constants from '../../common/Constants';
import CommonRequestDataAction from '../common/CommonRequestDataAction';

export default class HeartLoveGetMediaAction extends CommonRequestDataAction {
  constructor(props) {
    super(props);

    this.moduleType = Constants.MODULE_TYPE.HEART;
    this.name = "HeartLoveGetMediaAction";
  }

  finish(data, isSucceed, response) {
      console.log('HeartLoveGetMediaAction-',data, isSucceed, response)
      if(isSucceed) {
        this.caller.setState({
          viewStatus: response.status,
          photos:data.photos||[],
          videos:data.videos||[],
        })
      }
  }
}
